<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateUsinaAtoLegalTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateUsinaAtoLegalLabel_ualId}" for="ualId" />
                    <h:inputText id="ualId" value="#{usinaAtoLegalController.selected.ualId}" title="#{bundle.CreateUsinaAtoLegalTitle_ualId}" />
                    <h:outputLabel value="#{bundle.CreateUsinaAtoLegalLabel_ualUsiId}" for="ualUsiId" />
                    <h:selectOneMenu id="ualUsiId" value="#{usinaAtoLegalController.selected.ualUsiId}" title="#{bundle.CreateUsinaAtoLegalTitle_ualUsiId}" required="true" requiredMessage="#{bundle.CreateUsinaAtoLegalRequiredMessage_ualUsiId}">
                        <f:selectItems value="#{usinaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateUsinaAtoLegalLabel_ualAleId}" for="ualAleId" />
                    <h:selectOneMenu id="ualAleId" value="#{usinaAtoLegalController.selected.ualAleId}" title="#{bundle.CreateUsinaAtoLegalTitle_ualAleId}" required="true" requiredMessage="#{bundle.CreateUsinaAtoLegalRequiredMessage_ualAleId}">
                        <f:selectItems value="#{atoLegalController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{usinaAtoLegalController.create}" value="#{bundle.CreateUsinaAtoLegalSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{usinaAtoLegalController.prepareList}" value="#{bundle.CreateUsinaAtoLegalShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateUsinaAtoLegalIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
